package rpg.writer.scripts;

import java.util.Collection;
import java.util.List;

import rpg.engine.model.World;
import rpg.writer.scripts.impl.ScriptAnalyzer;

public final class ScriptTool {
	private ScriptTool()  {
		super();
	}

	public static WorldWithWarnings parse(List<String> lines) {
		ScriptAnalyzer tool = new ScriptAnalyzer("S1", lines);
		World world = tool.create();
		Collection<ScriptWarning> warnings = tool.getWarnings();
		return new WorldWithWarnings(world, warnings);
	}
	
	
}
